package com.geekbang.work9.mapper;

import com.geekbang.work9.DataSource;
import com.geekbang.work9.model.Student;

import java.util.List;

/**
 * @author nhsoft.lul
 */
public interface StudentMapper {
    @DataSource("master")
    int save(Student student);

    @DataSource("slave")
    List<Student> list();
}
